#ifndef BACKGROUND_H
#define BACKGROUND_H

#include <QGraphicsPixmapItem>

class Background : public QGraphicsPixmapItem {
public:
    explicit Background(const QString& imagePath, qreal speed = 1.0);
    void updatePosition(Background* partner);
    void resetPosition(Background* leadBg);
    qreal speed() const { return m_speed; }
    bool isLeading = false;
private:
    qreal m_speed;
};

#endif // BACKGROUND_H
